ARG IMAGE=containers.intersystems.com/intersystems/irishealth-community:2023.2.0.227.0

FROM $IMAGE
USER irisowner
WORKDIR /dur
COPY --chown=irisowner:irisowner src /dur
RUN ls /dur
RUN find . -name '.DS_Store' -type f -delete
RUN chmod -R 777 /dur
RUN ISC_CPF_MERGE_FILE=/dur/merge/merge.cpf iris start $ISC_PACKAGE_INSTANCENAME &&\ 
/dur/loader.sh
COPY --chown=irisowner:irisowner shared /dur/shared
# run iris and initial 

